/**
 *  Config.h
 *
 *  Copyright (C) 2008  David Andrs <pda@jasnapaka.com>
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */

#if !defined(AFX_CONFIG_H__893F0F55_6024_4D9D_B211_0C3AEDAB0FF0__INCLUDED_)
#define AFX_CONFIG_H__893F0F55_6024_4D9D_B211_0C3AEDAB0FF0__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

//
#ifdef LOGGING

#define CONFIG_DEFAULT_LOGFILE						_T("\\storage card\\program files\\mLasq\\mLasq.log")
#define CONFIG_DEFAULT_LOGLEVEL						1

#endif

#define CONFIG_DEFAULT_AUTO_CONNECT					FALSE

//
//
//

class CConfig {
public:
	CConfig();
	virtual ~CConfig();

#ifdef LOGGING
	CString LogFile;
	DWORD LogLevel;
#endif

	BOOL Save();
	BOOL Load();

	CString InstallDir;

	CString UserName;
	CString Password;
//	CString PasswordMD5;

	BOOL AutoConnect;
};

//

extern CConfig Config;

#endif // !defined(AFX_CONFIG_H__893F0F55_6024_4D9D_B211_0C3AEDAB0FF0__INCLUDED_)
